﻿/**
 * Created by Administrator on 2017/5/3 0003.
 */

var siteUrl=window.location.host+'/';

// var siteUrl = 'http://www.hospiatl.tt/';

var index =  'home/doctor-list';  //首页
var keshi =  'department/department-list';//首页科室
var yuyue =  'doctor/doctor-work-time'//预约时间段
var doctor_info =  'doctor/doctor-info'//医师简介
var member_index =  'user/one-user';//个人中心
var information =  ''//档案信息
var my_favorable =  'favorable/list-my-favorable'//未使用优惠劵
var my_favorable_used =  'favorable/list-favorable-used'//已使用优惠劵
var list_favorable =  'favorable/list-favorable'//优惠劵列表
var get_favorable =  'favorable/my-favorable'//领劵
var feedBackUrl =  'response/add-response';// 问题反馈提交接口
var recharge_history =  'charge/charge-log';//充值记录
var follow =  'follow/add-follow';//关注
var follow_list =  'follow/my-follow-list';//关注列表e
var cancle_follow =  'follow/cancle-follow';//取消关注
var news =  'message/message-list';//消息
var balance= 'pay/wxcharge'//充值
var paylog= 'card/card-res'//余额
var pay= 'pay/wxpay'//支付
var card_list='card/my-list'//我的就诊卡。卡列表
var hosURL =  'member/my-member-list';//就诊人员页面数据接口
var bindURL =  'card/bind-card-info';//绑定界面
var bindSaveURL =  'card/add-bind-card';//保存绑卡信息
var addSaveURL =  'member/add-member';//保存添加就诊人信息
var delMemURL =  'member/del-member';//删除就诊人信息
var infoSaveURL =  'appoint/appointemt-info';//保存预约信息
var infoCheckURL =  'appoint/appointment-info';//查看预约信息
var day_list='member/day-inp-list'//每日清单
var jianyanURL = 'members-report';//历史检查之检验接口
var jianchaURL = 'member/ris-report-detail';//历史检查之检查接口
var caseURL = 'memberar';//历史检查之病例接口
var day_list_detail='member/vaj'//每日清单详情
var zhuyuan_list='member/member-charge-list'//住院缴费清单
var hosURL =  'member/my-member-list';//就诊人员页面数据接口
var bindURL =  'card/bind-card-info';//绑定界面
var bindSaveURL =  'card/add-bind-card';//保存绑卡信息
var addSaveURL =  'member/add-member';//保存添加就诊人信息
var delMemURL =  'member/del-member';//删除就诊人信息
var infoSaveURL =  'appoint/appointment-info';//保存预约信息
var infoAddURL =  'appoint/add-appointment-info';//提交预约信息
var infoCheckURL =  'appoint/appointment-info';//查看预约信息
var payURL =  'appoint/appointment-list';//查看预约支付以及使用信息
var delAppointURL =  'appoint/del-appoint-del';//删除待支付订单
var commentURL =  'comment/add-comment';//保存用户评价
var feedbackURL =  'response/add-response';//保存用户反馈
var searchURL =  'search/index';//显示搜索的医师界面
var checkStateURL =  'appoint/check-member-card';//检测是否绑定就诊卡
var changeOrderURL =  'appoint/change-time';//改签接口
var jianyanURL =  'member/lis-report';//历史检查之检验接口
var jianchaURL =  'member/ris-report-detail';//历史检查之检查接口
var caseURL =  'member/vaf';//历史检查之病例接口
var zhuyuanURL =  'member/vaq';//病例住院详情接口
var apiwxpay = 'pay/wxpay';//微信支付
var jianyandetail='member/lis-report-info';//检验报告详情
var checkcodeURL = 'smscaptcha';//短信验证接口
var check_yuyue='appoint/check-has-app';//检查是否被预约
var payInfoURL='appoint/confim-pay';//订单支付
var checkindayURL='appoint/check-in-day-by-section';//检查同一人同一天同一科室
var expireURL='appoint/change-expire';//订单过期接口
var qrcode = 'favorable/my-favorable-detail';//优惠券二维码
var lostURL='card/loss-card';//挂失接口



function checkCookie() {
    if (!($.cookie("mid") && $.cookie("token"))) {
        self.location.href = 'home.html';
    }
}

//创建提示框
function creatLayout(Html){
    var Layout = document.createElement('div');
    Layout.className = 'code_tips';
    Layout.innerHTML = Html;
    document.body.appendChild(Layout);
    Move(Layout,'opacity',100);
    setTimeout(function(){
        Move(Layout,'opacity',0);
        setTimeout(function(){
            document.body.removeChild(Layout);
        },500)
    },1000)
}
var title='北斗星耳鼻喉医院';
$(document).attr('title',title)

function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return decodeURI(r[2]); return null;
}